

class Solution(object):
    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        i = 0
        j = 0
        if len(nums) == 0:
             print(nums)
        else:
            for i in range(len(nums)):
                if nums[i] != 0:
                    nums[j] = nums[i]
                    j += 1
            for k in range(j, len(nums)):
                nums[k] = 0
            print(nums)


if __name__ == '__main__':
    sol = Solution()
    sol.moveZeroes([])